Naanou
Class KeyStorer

A front-end to the indexing service provided by Indexer. Used by Database class on startup.

Field Summary
int fileExpire
int MAX_FILE_FEATURES
int MIN_METAKEYS_OVER_FILE
         Minimum number of metadata keys required for the filename to be disregarded for indexing
Naanou.Common.Search.ContentSource us

Constructor Summary
KeyStorer()
        Initializes a new instance of the KeyStorer class.

Method Summary
void Init()
int Publish(Naanou.ResourceExchange.Entry ent)
         Publishes a entry
void Publish(Naanou.Common.Hash hash, Naanou.Common.Search.IKey data, long expireIn)
         Publishes a key value pair
void Revoke(string keySerial)
         Revokes a key

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

fileExpire

private int fileExpire


MAX_FILE_FEATURES

private int MAX_FILE_FEATURES


MIN_METAKEYS_OVER_FILE

private int MIN_METAKEYS_OVER_FILE

Minimum number of metadata keys required for the filename to be disregarded for indexing


us

private Naanou.Common.Search.ContentSource us

Constructor Detail

KeyStorer

public KeyStorer()

Initializes a new instance of the KeyStorer class.

Method Detail

Init

public void Init()


Publish

public int Publish(Naanou.ResourceExchange.Entry ent)

Publishes a entry

Parameters:
entry - Entry to publish
Returns:
Number of individual keys published for entry

Publish

private void Publish(Naanou.Common.Hash hash,
                     Naanou.Common.Search.IKey data,
                     long expireIn)

Publishes a key value pair

Parameters:
hash - Key for data
data - Data to store
expireIn - Expiry time (minutes)

Revoke

public void Revoke(string keySerial)

Revokes a key

Parameters:
keySerial -